package Arrays101.Test;

/**
 * @author Alger
 * @date 2021/6/21  18:45
 */
public class Fanxing2 {

    public static void main(String[] args) {
        Test<Integer> integerTest = new Test<>();
        integerTest.setT(1);
        System.out.println(integerTest.getT());
        Test<String> stringTest = new Test<>();
        stringTest.setT("hhh");
        System.out.println(stringTest.getT());
    }
    public static class Test<T>{
        private T t;

        public T getT() {
            return t;
        }

        public void setT(T t) {
            this.t = t;
        }
    }
}
